<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>订餐管理后台</title>
    <link href="/static/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/static/css/style.css" rel="stylesheet">
    {% block css %}
    {% endblock %}
<body>
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="nav-header">
                    <div class="profile-element text-center">
                        <img alt="image" class="img-circle" width="120" src="/static/images/common/logo.png"/>
                        <p class="text-muted" style="font-size:16px;margin-top:10px;">{{ current_user.nickname }}</p>
                    </div>
                    <div class="logo-element">
                        <img alt="image" class="img-circle"width="60" src="/static/images/common/logo.png"/>
                    </div>
                </li>
                <li class="default">
                    <a href="/"><i class="fa fa-dashboard fa-lg"></i>
                        <span class="nav-label">仪表盘</span></a>
                </li>
                <li class="account">
                    <a href="{{ url_for('account_page.index') }}"><i class="fa fa-user fa-lg"></i> <span
                            class="nav-label">账号管理</span></a>
                </li>
                <li class="food">
                    <a href="{{ url_for('food_page.index') }}"><i class="fa fa-book fa-lg"></i> <span
                            class="nav-label">美餐管理</span></a>
                </li>
                <li class="member">
                    <a href="{{ url_for('member_page.index') }}"><i class="fa fa-group fa-lg"></i> <span
                            class="nav-label">会员列表</span></a>
                </li>
                <li class="finance">
                    <a href="{{ url_for('finance_page.index') }}"><i class="fa fa-rmb fa-lg"></i> <span
                            class="nav-label">财务管理</span></a>
                </li>
                <li class="stat">
                    <a href="{{ url_for('stat_page.index') }}"><i class="fa fa-bar-chart fa-lg"></i> <span
                            class="nav-label">统计管理</span></a>
                </li>
            </ul>

        </div>
    </nav>

    <div id="page-wrapper" class="gray-bg" style="background-color: #ffffff;">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);"><i class="fa fa-bars"></i> </a>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li>
						<span class="m-r-sm text-muted welcome-message" style="font-size:16px;">
                            欢迎使用鱼村小馆订餐管理后台
                        </span>
                    </li>
                    <li class="dropdown user_info">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
                            <img alt="image" class="img-circle" src="/static/images/user/{{ current_user.avatar }}"/>
                        </a>
                        <ul class="dropdown-menu dropdown-messages" style="font-size:14px;">
                            <li>
                                <div class="dropdown-messages-box">
                                    昵称 : {{ current_user.nickname }} <a href="{{ url_for('user_page.edit') }}" class="pull-right">编辑</a>
                                </div>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="dropdown-messages-box">
                                    账号 : {{ current_user.login_name }}
                                </div>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="dropdown-messages-box">
                                    身份 : <span class="text-info">{% if current_user.identity == 1 %}主管理员{% else %}管理员{% endif %}</span>
                                </div>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="link-block text-center">
                                    <a class="pull-left" href="{{ url_for('user_page.resetPwd') }}" style="font-size:14px;">
                                        <i class="fa fa-lock fa-lg"></i> 修改密码
                                    </a>
                                    <a class="pull-right" href="{{ url_for('user_page.loginOut') }}" style="font-size:14px;">
                                        <i class="fa fa-sign-out fa-lg"></i> 退出
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
        {% block content %}
        {% endblock %}
    </div>
</div>

<script src="/static/plugins/jquery-2.1.1.js"></script>
<script src="/static/bootstrap/bootstrap.min.js"></script>
<script src="/static/plugins/layer/layer.js"></script>
<script src="/static/js/common.js"></script>
{% block js %}{% endblock %}
</body>
</html>
